package com.ycz.service;

import com.ycz.commons.Result;
import com.ycz.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ycz.form.BlogForm;
import com.ycz.query.BlogQuery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ycz
 * @since 2021-10-10
 */
public interface BlogService extends IService<Blog> {

    List<Blog> selectBlogByTitleAndContentAndDes(BlogQuery blogQuery);

    Integer selectCount(BlogQuery blogQuery);

    Result selectArticleById(Integer id);

    Result insertBlog(BlogForm blogForm);

    Result updateById(BlogForm blogForm);
}
